#pragma once

#include "clkTexture.h"
#include "gButton.h"

class gSlider : public clkAbstract
{
private:
	float      m_perc;
	gButton    m_bar;
	gButton    m_btn;
	gButton    m_icn;
	clkTexture m_inf;

	bool m_drawInfo;
public:
	gSlider();
	~gSlider();

	void initSlider(
		char* a_bar,
		char* a_btn,
		char* a_icn,
		char* a_inf,
		V2DF  a_pos,
		V2DF  a_iconOff,
		V2DF  a_infoOff);
	void input();
	void update();
	void draw();

	void  setPerc(float a_perc);
	float getPerc(){return m_perc;}
};